{% extends "base.html" %}{% load i18n crm_tags %} {% block title %}{% translate "Find caller" %}{% endblock %} {% block content %}
{% if phone %}

{{ phone_display }}

{% if results %}{% translate "No one has exactly this number. These numbers are close." %}{% else %}{% translate "This number is not in the contacts yet." %}{% endif %}

{% else %}

“{{ q }}”

{% if results %}{% blocktranslate trimmed count n=results|length %}{{ n }} match.{% plural %}{{ n }} matches.{% endblocktranslate %}{% else %}{% translate "No contact has this name." %}{% endif %}

{% endif %}
{% if phone %} {% translate "Add new caller" %} {% else %} {% blocktranslate trimmed %}Add “{{ q }}” as a new caller{% endblocktranslate %} {% endif %}
{% if results %}
{% for c in results %} {% endfor %}
{% translate "Name" %}{% translate "Phone" %}{% translate "Location" %}{% translate "Last call" %}
{{ c.name }} {{ c.phone_display }}{% if c.alt_phone %}
{{ c.alt_phone_display }}
{% endif %}
{{ c.location|default:"—" }} {% if c.last_call %}{{ c.last_call|when }}{% else %}{% translate "Never" %}{% endif %} {% translate "Log call" %}
{% endif %} {% endblock %}